<template>
  <div class="view">
    <div class="name"><slot name="type"></slot></div>
    <div class="numberView"><div class="number"><slot name="number"></slot></div></div>
  </div>
</template>
<script>
  export default {
    name:'item'
  }
</script>


<style scoped>
  .number{
    background-color: deepskyblue;
    color: white;
    width: 30px;
    border-radius: 2px;
    font-size: 10px;
    text-align: center;
    height: 10px;
    position: absolute;
    top: 30%;
    margin-left: 3px;
  }
  .numberView{
    position: relative;
  }
  .view{
    display: flex;
    flex: 0 0 12%;
    box-sizing: border-box;
  }
  .name{
    font: 18px "宋体";
  }
</style>